package com.xf.day03.traitTest

class Student13 extends Person13 with Young {

   override val age: Int = 0

  // 重写 冲突的属性
  override val name: String = "student"

  // 实现抽象方法
  override def dating(): Unit = println(s"student $name is dating")

   def study():Unit = println(s"student $name is studying")

  override def sayHello(): Unit = {
    super.sayHello()
    println(s"hello from: student $name ")
  }

}
